package com.jopen.wia.cheese;

import java.util.List;

import org.apache.wicket.markup.html.WebPage;

public abstract class CheesePage extends WebPage {
	public CheeseSession getCheeseSession() {
		return (CheeseSession) getSession();
	}
	
	public Cart getCart() {
		return getCheeseSession().getCart();
	}
	
	public List<Cheese> getCheeses() {
		return ((CheeseApplication)CheeseApplication.get()).getCheeses();
	}
}
